package com.bestcem.xm.ticket.controller.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 问卷信息列表和规则信息列表,SurveyAndRuleVO是历史遗留,只有Survey和AlertRule被真正使用
 *
 * @author zq.ding <zq.ding@idiaoyan.com>
 * @version v1.0
 * @date 2021/8/18 15:18
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SurveyAndRuleVO {
    /**
     * 问卷信息列表
     */
    private List<Survey> surveyList;

    /**
     * 生成规则信息列表
     */
    private List<AlertRule> alertRuleList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Survey implements Serializable {
        private static final long serialVersionUID = 5322043921073406748L;
        @JsonProperty("surveyTitle")
        private String surveyTitle;
        /**
         * 问卷id
         */
        @JsonProperty("surveyId")
        private String surveyId;

    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class AlertRule implements Serializable {
        private static final long serialVersionUID = 9016105465610608515L;
        @JsonProperty("alertRuleTitle")
        private String alertRuleTitle;
        /**
         * 生成规则id
         */
        @JsonProperty("alertRuleId")
        private String alertRuleId;
    }
}
